Skip to content

Conversation

@jasikpark
Copy link
Contributor

@jasikpark jasikpark commented Oct 24, 2025

This matches the behavior of Visual Studio Code

Closes #ISSUE

Release Notes:

  • Added VS Code's terminal split keybindings (cmd-d on MacOS, ctrl-shift-5 on Windows and Linux)

This matches the behavior of Visual Studio Code
@cla-bot
Copy link

cla-bot bot commented Oct 24, 2025

We require contributors to sign our Contributor License Agreement, and we don't have @jasikpark on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@jasikpark
Copy link
Contributor Author

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 24, 2025
@cla-bot
Copy link

cla-bot bot commented Oct 24, 2025

The cla-bot has been summoned, and re-checked this pull request!

@dinocosta
Copy link
Contributor

Hey @jasikpark 👋

I tested VS Code on both macOS and Windows, and in both cases cmd-d/ctrl-d has no effect. According to VS Code’s documentation, the shortcut to split the editor is cmd-\ on macOS and ctrl-\ on Windows, shortcuts Zed already includes in its default keymap.

I’m closing this pull request but, if there's something I'm missing, feel free to share more details. 🙂

@dinocosta dinocosta closed this Oct 27, 2025
@jasikpark
Copy link
Contributor Author

Screenshot 2025-10-27 at 11 17 30 AM

I've got it on macOS VS Code, and it's not a user-defined keyboard shortcut.

@jasikpark jasikpark changed the title Add cmd-d shortcut for pane::SplitRight Add cmd-d shortcut for (terminal) pane::SplitRight Oct 27, 2025
@jasikpark
Copy link
Contributor Author

Hey @jasikpark 👋

I tested VS Code on both macOS and Windows, and in both cases cmd-d/ctrl-d has no effect. According to VS Code’s documentation, the shortcut to split the editor is cmd-\ on macOS and ctrl-\ on Windows, shortcuts Zed already includes in its default keymap.

I’m closing this pull request but, if there's something I'm missing, feel free to share more details. 🙂

Not for the editor, but for the terminal. Though I'm not finding any docs that describe splitting the terminal in VS Code to provide alternative proof...

@dinocosta
Copy link
Contributor

Not for the editor, but for the terminal. Though I'm not finding any docs that describe splitting the terminal in VS Code to provide alternative proof...

Got it! Sorry, I got confused and completely missed that this was terminal specific. I've been able to confirm that VS Code does indeed use cmd-\ to split the editor and cmd-d to split the terminal, on MacOS.

Since cmd-d in the Terminal context doesn't conflict with any existing binding let's go ahead and add this. Seeing as we're updating the MacOS ones, would you also be able to update the corresponding default bindings on Windows and Linux bindings to ctrl-shift-5? Thanks!

@dinocosta dinocosta reopened this Oct 29, 2025
@jasikpark
Copy link
Contributor Author

Done!

Update uses of `pane:SplitRight` to `pane::SplitRight` as having a
single colon would lead to this being an invalid binding.
@dinocosta
Copy link
Contributor

Thank you @jasikpark ! I ended up pushing a commit to your branch and updating the release notes, will merge this now 🙂

@dinocosta dinocosta merged commit 426040f into zed-industries:main Oct 30, 2025
25 checks passed
@jasikpark
Copy link
Contributor Author

Thank you @jasikpark ! I ended up pushing a commit to your branch and updating the release notes, will merge this now 🙂

Ah, the macOS keyboard shortcut is listed as just cmd rather than cmd+D in the release notes 😅

Glad this got in though!

@dinocosta
Copy link
Contributor

Ah, the macOS keyboard shortcut is listed as just cmd rather than cmd+D in the release notes 😅

I'll see if I can reach out to someone internally in order to get this fixed... 🫠
Thank you for pointing that out!

@JosephTLyons
Copy link
Collaborator

JosephTLyons commented Oct 30, 2025

Hey @jasikpark, no worries on the release notes, just edit them here. The release notes script we run isn't tied to what gets merged in git, the script runs around and fetches all the PR bodies from GitHub. The script was written this way intentionally so we can update the PR bodies after the PR is merged and those changes will make it into the compiled notes we put together on release Zednesday. You can just edit it now.

@jasikpark jasikpark deleted the patch-1 branch October 30, 2025 20:54
@jasikpark
Copy link
Contributor Author

cool, seems smart - I feel like I prefer the approach in https://github.com/changesets/changesets where the release notes are in a special file tracked for each PR <3

https://github.com/changesets/changesets/blob/main/docs/intro-to-using-changesets.md

(rust version: https://github.com/knope-dev/knope)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants